package com.itheima.domain;



import java.io.Serializable;

@Deprecated//过时
public class Student extends Person implements Serializable ,Comparable,A {
    private String name;
    private int age;
    public String gender;
    public double money;

    public Student() {
    }

    private Student(String name) {
        this.name = name;
    }

    public Student(int age) {
        this.age = age;
    }

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", gender='" + gender + '\'' +
                ", money=" + money +
                '}';
    }

    public void study() {
        System.out.println("学生在学习");
    }

    private void eat() {
        System.out.println("偷偷的在这吃");
    }
    public boolean dance(int i){
        System.out.println(i);
        return true;
    }

    @Override
    public int compareTo(Object o) {
        return 0;
    }
}
interface A{

}